comment on touchstart.dropdown e.stopPropagation

Andrew Cantino 10 years ago
parent
commit
a5321938e7
1 changed files with 10 additions and 0 deletions
  1. 10 0
      vendor/assets/javascripts/bootstrap.js

+ 10 - 0
vendor/assets/javascripts/bootstrap.js

@@ -2024,4 +2024,14 @@
2024 2024
 
2025 2025
 }(window.jQuery);
2026 2026
 
2027
+
2028
+// This code taken from:
2029
+//  twbs/bootstrap#5067 (comment)
2030
+//
2031
+// It fixes a problem that may be present on certain Android (and other) browsers whereby pop-up menus like Huginn's Account one on the menu bar do not
2032
+// open on touch.
2033
+//
2034
+// The problem and fix is also summarised in this blog post.
2035
+//   http://alittlecode.com/fix-twitter-bootstraps-dropdown-menus-in-touch-screens/
2036
+
2027 2037
 $('body').on('touchstart.dropdown', '.dropdown-menu', function (e) { e.stopPropagation(); });